genh = custom_target('header',
  output: 'generated.h',
  command: [find_program('genh.py'), '@OUTPUT@'])
